package com.prs.crm.domain.doc;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.IssueDoc;
import com.prs.crm.domain.hr.Person;

@Entity
@Table(name="doc_share_deptdoc")
public class ShareDeptDoc extends BaseEntity implements IssueDoc{

	private static final long serialVersionUID = 2689628531322169333L;
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	@ManyToOne
	private Person person;
	@ManyToOne
	private DeptDoc deptDoc;
	private Date beginTime;
	private Date endTime;
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	public Date getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public DeptDoc getDeptDoc() {
		return deptDoc;
	}
	public void setDeptDoc(DeptDoc deptDoc) {
		this.deptDoc = deptDoc;
	}
	
	
	
}
